﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Sisocana.Core.Models;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;
using Sisocana.Core;



namespace SisocanaFronEnd.Models
{
    public class FoundPersonViewModel
    {
        public ReporteModel Reporte { get; set; }
        public PersonaDesaparecidaFullModel Persona { get; set; }

        public FoundPersonViewModel(int idSitio,int id, bool eE,int sWSid, int idS,string name,string lastName,DateTime date,string phone)
        {
            Reporte = new ReporteModel(){
                                            idPersona = id,
                                            externalEntity = eE,
                                            searchWSId = sWSid,
                                            siteId = idS
                                        };
            Persona = new PersonaDesaparecidaFullModel();
            Persona = (new PersonaService()).completarInfo(idSitio, idS, id, eE, sWSid,name,lastName,date,phone);
        }

        public FoundPersonViewModel() { }
    }
}